from wtforms import Form, StringField, SubmitField,TextAreaField
from wtforms.validators import DataRequired, Length


class indexForm(Form):
    name = StringField('你的名字', validators=[DataRequired(), Length(1,10)])
    text = TextAreaField('想说的话',validators=[DataRequired(), Length(10,300)])
    submit = SubmitField("开始模拟")
